home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 June / SGI Freeware 1998 June.iso / dist / fw_ATxgopher.idb / usr / freeware / src / xgopher.1.3 / globals.h.z / globals.h
C/C++ Source or Header  |  1998-01-21  |  2KB  |  63 lines

  1. /* globals.h
  2.    Define the global variables and macros */
  3.  
  4.      /*---------------------------------------------------------------*/
  5.      /* Xgopher        version 1.3     08 April 1993                  */
  6.      /*                version 1.2     20 November 1992               */
  7.      /*                version 1.1     20 April 1992                  */
  8.      /*                version 1.0     04 March 1992                  */
  9.      /* X window system client for the University of Minnesota        */
  10.      /*                                Internet Gopher System.        */
  11.      /* Allan Tuchman, University of Illinois at Urbana-Champaign     */
  12.      /*                Computing and Communications Services Office   */
  13.      /* Copyright 1992, 1993 by                                       */
  14.      /*           the Board of Trustees of the University of Illinois */
  15.      /* Permission is granted to freely copy and redistribute this    */
  16.      /* software with the copyright notice intact.                    */
  17.      /*---------------------------------------------------------------*/
  18.  
  19. #ifndef G_GLOBALS_H
  20. #define G_GLOBALS_H
  21.  
  22. #include <stdio.h>
  23.  
  24. /* These defines assure that global variables are declared only once.
  25.    They are declared when this file is included by a file with GLOBALS
  26.    defined. */
  27.  
  28. #ifndef GLOBALS
  29. #define EXTERN extern
  30. #define INIT(x)
  31. #else
  32. #define EXTERN
  33. #define INIT(x) =x
  34. #endif
  35.  
  36. #include "conf.h"
  37. /*
  38. #include "oneLine.h"
  39. */
  40.  
  41. EXTERN
  42. char        gopherName[PATH_NAME_LEN];    /* name used to start xgopher */
  43.  
  44. EXTERN
  45. FILE        *logFP INIT(NULL);        /* global logging file */
  46.  
  47. #undef EXTERN
  48. #undef INIT
  49.  
  50.     /* functions in xgopher.c callable from others */
  51.  
  52. void    doMainItem();
  53.  
  54.  
  55.     /*   Macros and symbolic constants used by Xgopher */
  56.  
  57. #define        LOG    if (logFP != NULL) fprintf
  58.  
  59. #define MIN_DIR_STRING_LIST_LEN        200    /* hint at len of dir list */
  60. #define MIN_MARK_STRING_LIST_LEN    20    /* hint at len of mark list */
  61.  
  62. #endif /* ifndef G_GLOBALS_H */
  63.